init();
	var hasTouch = 'ontouchstart' in window,
		//鼠标事件or触摸事件
		TAP_EV = hasTouch ? 'tap' : 'tap',
		START_EV = hasTouch ? 'touchstart' : 'mousedown',
		MOVE_EV = hasTouch ? 'touchmove' : 'mousemove',
		END_EV = hasTouch ? 'touchend' : 'mouseup';
	$(".menu-icon").on(START_EV, momasktg);
	$(".outmask").on(START_EV, momasktg);	
	document.addEventListener('scroll', function(event) {
		var scrollDistance = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop;
		if(scrollDistance >= 140) { // 触发的位置
			$(".navwarp").css({
				"height": "0.3rem",
				"lineHeight": "0.3rem",
				"background": "rgba(255,255,255,0.98)",
				"boxShadow": "0px 1px 15px 0px rgba(0, 0, 0, 0.1) "
			});
			$(".navdivst a").addClass("c333");
			$(".navdivst span").addClass("c333");
			$(".logo").attr("src", "images/logo.png").css("height", "0.20rem");
			$(".logobox").css("top", "0.05rem")
		} else {
			$(".navwarp").css({
				"height": "0.75rem",
				"lineHeight": "0.75rem",
				"background": "none",
				"boxShadow": "none"
			});
			$(".navdivst a").removeClass("c333");
			$(".navdivst span").removeClass("c333");
			$(".logo").attr("src", "images/index/logo.png").css("height", "0.4rem");
			$(".logobox").css("top", "21.43%")
		}
	});

	function momasktg() {
		$(".momask").toggle();
	}
